package io.gitee.zhangbinhub.admin.workflow.notify

import io.gitee.zhangbinhub.acp.boot.exceptions.WebException
import io.gitee.zhangbinhub.acp.boot.log.LogAdapter
import io.gitee.zhangbinhub.admin.base.PendingFinishedNotify
import org.camunda.bpm.engine.repository.ProcessDefinition
import org.camunda.bpm.engine.task.Task
import org.springframework.stereotype.Component

@Component
class LogPendingFinishedNotify(private val logAdapter: LogAdapter) : PendingFinishedNotify() {
    @Throws(WebException::class)
    override fun doTaskNotify(
        businessKey: String,
        task: Task,
        processDefinition: ProcessDefinition,
        userIdList: List<String>
    ) {
        logAdapter.debug("待办完成通知：taskId【${task.id}】processInstanceId【${task.processInstanceId}】processDefinitionId【${task.processDefinitionId}】businessKey【$businessKey】，userId：$userIdList")
    }
}